package com.atguigu.spzx.mapper;

import com.atguigu.spzx.model.dto.h5.ProductSkuDto;
import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductSkuMapper {
    List<ProductSku> selectSkuBySal();

    List<ProductSku> findByPage(ProductSkuDto productSkuDto);

    ProductSku selectSkuById(Integer skuid);

    List<ProductSku> selectSkuByProductId(Long id);

    void updateSale(Long skuId, Integer num);
}
